<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <!-- import CSS -->
  <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
</head>
<body>
<div id="app">

  <el-container>
    <el-header style="background-color: #0095d7">
      <h1 style="color: white;font-size: 22px">CoolShark商城后台管理系统
      <span style="float: right">欢迎XXX回来!<a href="">退出登录</a></span>
      </h1></el-header>

    <el-container>
      <el-aside width="200px">
        <!--侧边栏-->
        <el-menu
                default-active="2"
                class="el-menu-vertical-demo"
                @open="handleOpen"
                @close="handleClose"
                background-color="#545c64"
                text-color="#fff"
                active-text-color="#ffd04b">
          <el-submenu index="1">
            <template slot="title">
              <i class="el-icon-location"></i>
              <span>分类管理</span>
            </template>
            <el-menu-item-group>
              <el-menu-item index="1-1">分类列表</el-menu-item>
              <el-menu-item index="1-2">添加分类</el-menu-item>
            </el-menu-item-group>

          </el-submenu>

          <el-submenu index="1">
            <template slot="title">
              <i class="el-icon-location"></i>
              <span>轮播图管理</span>
            </template>
            <el-menu-item-group>
              <el-menu-item index="1-1">轮播图列表</el-menu-item>
              <el-menu-item index="1-2">添加轮播图</el-menu-item>
            </el-menu-item-group>

          </el-submenu>



        </el-menu>

      </el-aside>
      <el-main>

      </el-main>
    </el-container>
  </el-container>
</div>
</body>
<!-- import Vue before Element -->
<script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
<!-- import JavaScript -->
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
<script>
  let v = new Vue({
    el: '#app',
    data: function() {
      return { //在这里面定义变量

      }
    },
    methods: {
      handleOpen(key, keyPath) {
        console.log(key, keyPath);
      },
      handleClose(key, keyPath) {
        console.log(key, keyPath);
      }
    }
  })
</script>

<!--<style>-->
<!--  .el-header, .el-footer {-->
<!--    background-color: #B3C0D1;-->
<!--    color: #333;-->
<!--    text-align: center;-->
<!--    line-height: 60px;-->
<!--  }-->

<!--  .el-aside {-->
<!--    background-color: #D3DCE6;-->
<!--    color: #333;-->
<!--    text-align: center;-->
<!--    line-height: 200px;-->
<!--  }-->

<!--  .el-main {-->
<!--    background-color: #E9EEF3;-->
<!--    color: #333;-->
<!--    text-align: center;-->
<!--    line-height: 160px;-->
<!--  }-->

<!--  body > .el-container {-->
<!--    margin-bottom: 40px;-->
<!--  }-->

<!--  .el-container:nth-child(5) .el-aside,-->
<!--  .el-container:nth-child(6) .el-aside {-->
<!--    line-height: 260px;-->
<!--  }-->

<!--  .el-container:nth-child(7) .el-aside {-->
<!--    line-height: 320px;-->
<!--  }-->
<!--</style>-->
</html>